from flask import Flask
from users import user_bp
from converter import MobileConverter

app = Flask(__name__)

# 导入自定义的转换器
app.url_map.converters['mobile'] = MobileConverter
class DefaultConfig(object):
    SECRET_KEY = 'fih9fh9eh9gh2'
app.config.from_object(DefaultConfig)
app.register_blueprint(user_bp, url_prefix='/user')



@app.route('/')
def user_profile():
    return 'hello world~'


if __name__ == '__main__':
    app.run(debug=True)
